package org.hwua.production.service;

import java.util.List;

import org.hwua.production.domain.Customer;
import org.hwua.production.domain.custom.CustomResult;
import org.hwua.production.domain.custom.EUDataGridResult;
/**
 * 客户管理业务逻辑层接口
 * @author hwua
 *
 */
public interface CustomerService {
	
	List<Customer> find() throws Exception;  
	
	EUDataGridResult getList(int page, int rows, Customer custom) throws Exception;
	
	Customer get(String string) throws Exception;
	
	CustomResult delete(String string) throws Exception;

	CustomResult deleteBatch(String[] ids) throws Exception;

	CustomResult insert(Customer custom) throws Exception;

	//更新部分字段，用的是updateSelective判断非空的字段进行更新
    CustomResult update(Customer custom) throws Exception;
    
    //更新全部字段，不判断非空，直接进行更新
    CustomResult updateAll(Customer custom) throws Exception;
    
    //更新备注
    CustomResult updateNote(Customer custom) throws Exception;

    CustomResult changeStatus(String[] ids) throws Exception;
    
    EUDataGridResult searchCustomerByCustomName(int page, int rows, String customName) throws Exception;

    EUDataGridResult searchCustomerByCustomId(int page, int rows, String customId) throws Exception;
}
